<?php $this->headTitle('Leoteo - index'); ?>
<p>
    <a href="<?php echo $this->baseUrl("/index/registry"); ?>">Đăng kí</a>
    |
    <a href="<?php echo $this->baseUrl("/index/rstory"); ?>">Đọc truyện</a>
    |
    <a href="<?php echo $this->baseUrl("/index/leoteo"); ?>">Linh tinh</a>
    |
    <a href="<?php echo $this->baseUrl("/index/productx"); ?>">Productx</a>
    |
    <a href="<?php echo $this->baseUrl("/index/btree"); ?>">Btree</a>
    |
    [<?php echo $this->status; ?>]
</p>

<select name="nod1" id="nod1">    
    <?php
    if ($this->nod1 != NULL) {
        foreach ($this->nod1 as $value) {
            echo "<option value='{$value['Mad']}'> {$value['Tdc']}</option>";
        }
    }
    ?>
</select>

<select>
    <?php
    if ($this->nod2 != NULL) {
        foreach ($this->nod2 as $value) {
            echo "<option>{$value['Tdc']}</option>";
        }
    }
    ?>
</select>

<select>
    <?php
    if ($this->nod3 != NULL) {
        foreach ($this->nod3 as $value) {
            echo "<option>{$value['Tdc']}</option>";
        }
    }
    ?>
</select>

<select>
    <?php
    if ($this->nod4 != NULL) {
        foreach ($this->nod4 as $value) {
            echo "<option>{$value['Tdc']}</option>";
        }
    }
    ?>
</select>

<select>
    <?php
    if ($this->nod5 != NULL) {
        foreach ($this->nod5 as $value) {
            echo "<option>{$value['Tdc']}</option>";
        }
    }
    ?>
</select>

<select>
    <?php
    if ($this->nod6 != NULL) {
        foreach ($this->nod6 as $value) {
            echo "<option>{$value['Tdc']}</option>";
        }
    }
    ?>
</select>

<select>
    <?php
    if ($this->nod7 != NULL) {
        foreach ($this->nod7 as $value) {
            echo "<option>{$value['Tdc']}</option>";
        }
    }
    ?>
</select>